package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zh
 * @since 2023-06-20
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "commentID", type = IdType.AUTO)
    private Integer commentID;
    @TableField(value = "itemID")
    private Integer itemID;
    @TableField(value = "userID")
    private Integer userID;
    @TableField(value = "commentContent")
    private String commentContent;
    @TableField(value = "commentTime")
    private LocalDateTime commentTime;

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @TableField(value = "deleted")
    private Integer deleted;
    public Integer getCommentID() {
        return commentID;
    }

    public void setCommentID(Integer commentID) {
        this.commentID = commentID;
    }
    public Integer getItemID() {
        return itemID;
    }

    public void setItemID(Integer itemID) {
        this.itemID = itemID;
    }
    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }
    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }
    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
            "commentID=" + commentID +
            ", itemID=" + itemID +
            ", userID=" + userID +
            ", commentContent=" + commentContent +
            ", commentTime=" + commentTime +
        "}";
    }
}
